package gui;

import javax.swing.JPanel;

import java.awt.Color;

import javax.swing.JLabel;

import java.awt.Font;
import java.awt.event.ActionListener;

import javax.swing.SwingConstants;
import javax.swing.JButton;

public class Hello extends JPanel {
	
	private JLabel lblHi;
	private JLabel lblWelcome;
	private JLabel lblLine1;
	private JLabel lblLine2;
	private JLabel lblLine3;
	private JLabel lblLine4;
	private JLabel lblStart;
	private JButton btnStart;
	
	public Hello() {
		
		setBounds(0, 0, 264, 451);
		setBackground(new Color(245, 245, 245));
		setLayout(null);
		
		lblHi = new JLabel("Hi!");
		lblHi.setFont(new Font("Myriad Pro", Font.PLAIN, 36));
		lblHi.setBounds(112, 61, 40, 37);
		add(lblHi);
		
		lblWelcome = new JLabel("Welcome to What 2 Eat -");
		lblWelcome.setFont(new Font("Myriad Pro", Font.PLAIN, 24));
		lblWelcome.setBounds(10, 137, 247, 25);
		add(lblWelcome);
		
		lblLine1 = new JLabel("An easy-to-use app, that offers");
		lblLine1.setFont(new Font("Myriad Pro", Font.PLAIN, 18));
		lblLine1.setBounds(10, 184, 277, 19);
		add(lblLine1);
		
		lblLine2 = new JLabel("a variety of food recipes that");
		lblLine2.setHorizontalAlignment(SwingConstants.CENTER);
		lblLine2.setFont(new Font("Myriad Pro", Font.PLAIN, 18));
		lblLine2.setBounds(20, 204, 218, 19);
		add(lblLine2);
		
		lblLine3 = new JLabel("make coming up with ideas for");
		lblLine3.setHorizontalAlignment(SwingConstants.CENTER);
		lblLine3.setFont(new Font("Myriad Pro", Font.PLAIN, 18));
		lblLine3.setBounds(10, 224, 236, 19);
		add(lblLine3);
		
		lblLine4 = new JLabel("dinner, a little bit easier.");
		lblLine4.setHorizontalAlignment(SwingConstants.CENTER);
		lblLine4.setFont(new Font("Myriad Pro", Font.PLAIN, 18));
		lblLine4.setBounds(10, 242, 236, 19);
		add(lblLine4);
		
		lblStart = new JLabel("Let's get started!");
		lblStart.setHorizontalAlignment(SwingConstants.CENTER);
		lblStart.setFont(new Font("Myriad Pro", Font.PLAIN, 18));
		lblStart.setBounds(10, 337, 247, 19);
		add(lblStart);
		
		btnStart = new JButton("START");
		btnStart.setFont(new Font("Myriad Pro", Font.PLAIN, 16));
		btnStart.setBounds(66, 367, 134, 42);
		add(btnStart);

	}
	
	public JButton btnStart(){
		return btnStart;
	}
	
	public void addActionListener(ActionListener actionlistener) {
		btnStart.addActionListener(actionlistener);
	}
}
